//#include <iostream>
#include <stdio.h>
//using namespace std;

int main()
{
    /* 
    int a[10];
    int b[]={0,1,2};
    int c[]={0,1,2,3,4};
    char* d = "12345";
    std::cout<<"sizeof(a) = "<<sizeof(a)<<endl;
    std::cout<<"sizeof(b) = "<<sizeof(b)<<endl;
    std::cout<<"sizeof(&b) = "<<sizeof(&b)<<endl;
    std::cout<<"sizeof(c) = "<<sizeof(c)<<endl;
    std::cout<<"sizeof(&a) = "<<sizeof(&a)<<endl;
    std::cout<<"sizeof(d) = "<<sizeof(d)<<endl;
    */
    char a[]={0,1,2,3};
    int *ptr = (int *)(a);
    printf("*a = %d\n", *a);
    printf("a = %x\n", a);
//    ptr --;
    printf("ptr = %x\n", ptr);
    printf("*ptr = %d\n", *ptr);
    printf("\(char\)*ptr = %c", *ptr);
    printf("&a = %x\n", &a);
    return 0;
}
